<template>
  <div class="order">
    <div class="search">
      <div class="name">
        <el-input placeholder="请输入客户名称" v-model="name" class="input-with-select">
        </el-input>
      </div>
      <div class="date">
        <el-date-picker
          v-model="date"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        ></el-date-picker>
      </div>
      <el-button type="primary" class="searchBtn">搜索</el-button>
    </div>
    <div class="nums">
      <div class="recommend">
        <p>
          返利总金额：
          <em>0</em> 元
        </p>
      </div>
    </div>
    <div class="table">
      <el-table :data="tableData" stripe style="width: 100%">
        <el-table-column prop="mc" label="客户名称"></el-table-column>
        <el-table-column prop="flje" label="返利金额"></el-table-column>
        <el-table-column prop="gs" label="公司"></el-table-column>
        <el-table-column prop="sjh" label="手机号"></el-table-column>
        <el-table-column prop="sj" label="支付时间"></el-table-column>
      </el-table>
    </div>
    <div class="pagination">
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400">
      </el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: "order",
  data() {
    return {
      type: "",
      name: "",
      date: "",
      tableData: [
        {
          gs:'成都大迈通',
          mc:'李维',
          sjh:'18781523656',
          flje:'58',
          sj: "2016-05-02",
        },
        {
          gs:'成都大迈通',
          mc:'李维',
          sjh:'18781523656',
          flje:'58',
          sj: "2016-05-02",
        },
        {
          gs:'成都大迈通',
          mc:'李维',
          sjh:'18781523656',
          flje:'58',
          sj: "2016-05-02",
        },
      ]
    };
  },
  created() {
    console.log("客户");
  },
  methods: {}
};
</script>

<style scoped lang="less">
.order {
  width: 100%;
  .tips {
    border: 1px solid rgb(0, 193, 222);
    font-size: 14px;
    padding: 5px 20px;
    color: rgb(119, 127, 132);
    background-color: rgb(239, 240, 252);
    i {
      margin-right: 5px;
    }
  }
  .search {
    display: flex;
    .date,
    .searchBtn {
      margin-left: 20px;
    }
    /deep/ .el-select {
      width: 150px;
    }
  }
  .nums {
    width: 100%;
    padding: 5px 20px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    margin-top: 20px;
    height: 50px;
    border-bottom: none;
    p {
      font-size: 14px;
      color: rgb(119, 127, 132);
      em {
        font-size: 20px;
        font-weight: 600;
      }
    }
    .buy {
      margin-left: 50px;
    }
  }
  .table {
    width: 100%;
    /deep/ .el-table{
      border: 1px solid #ccc;
      /deep/ .has-gutter tr th{
        // background: #f00;
        background: rgb(245,245,246) !important;
      }
    }
  }
  .pagination{
    width: 100%;
    height: 60px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing:border-box;
    border-top: none;
  }
}
</style>
